﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Widgetsphere.Autos.API.FacetedNavigation
{
    partial class ListingQuery
    {
        public string ToFormattedString()
        {
            if (this.ListingId != 0)
            {
                return "/detail.aspx?autoid=" + this.ListingId;
            }

            return this.ToString();
        }

        public int ListingId { get; set; }
        public string Make { get; set; }
        public string Model { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string BodyType { get; set; }
        public string Zip { get; set; }
        public int Year { get; set; }
        public double Radius { get; set; }
        public string Metro { get; set; }

        public bool IsSEO
        {
            get { return false; }
        }
    }
}